package indi.jp.project.business.jingying.dao;

import indi.jp.project.business.jingying.entity.Supplies;
import indi.jp.project.business.jingying.entity.SuppliesItem;
import indi.jp.project.business.jingying.pojo.query.SuppliesQuery;
import org.apache.ibatis.annotations.Mapper;

import java.sql.SQLException;
import java.util.List;

/**
 * 经营用品审批DAO
 *
 * @author jiangping
 * @date 2022/5/7
 */
@Mapper
public interface SuppliesDAO {

    List<Supplies> queryList(SuppliesQuery query) throws SQLException;

    int queryCount(SuppliesQuery query) throws SQLException;

    Supplies findById(String id) throws SQLException;

    void insert(Supplies supplies) throws SQLException;

    void update(Supplies supplies) throws SQLException;

    void deleteById(String id) throws SQLException;

    List<SuppliesItem> queryItemList(String billId) throws SQLException;

    void deleteItemsByPId(String billId) throws SQLException;

    void insertItems(List<SuppliesItem> list) throws SQLException;

}
